﻿// Copyright (c) Argo Zhang (argo@163.com). All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Website: https://www.blazor.zone or https://argozhang.github.io/

namespace BootstrapBlazor.Components;

/// <summary>
/// LookupService 基类
/// </summary>
public abstract class LookupServiceBase : ILookupService
{
    /// <summary>
    ///<inheritdoc/>
    /// </summary>
    public virtual IEnumerable<SelectedItem>? GetItemsByKey(string? key) => GetItemsByKey(key, null);

    /// <summary>
    ///<inheritdoc/>
    /// </summary>
    public abstract IEnumerable<SelectedItem>? GetItemsByKey(string? key, object? data);
}
